package com.vecharm.app.utils

/**
 *
 * MEDIA_ERROR_UNKNOWN	-1	未知错误
   ERROR_CODE_OPEN_FAILED	-2	播放器打开失败
   ERROR_CODE_IO_ERROR	-3	网络异常
   ERROR_CODE_SEEK_FAILED	-4	拖动失败
   ERROR_CODE_CACHE_FAILED	-5	预加载失败
   ERROR_CODE_HW_DECODE_FAILURE	-2003	硬解失败
   ERROR_CODE_PLAYER_DESTROYED	-2008	播放器已被销毁，需要再次 setVideoURL 或 prepareAsync
   ERROR_CODE_PLAYER_VERSION_NOT_MATCH	-9527	so 库版本不匹配，需要升级
   ERROR_CODE_PLAYER_CREATE_AUDIO_FAILED	-4410	AudioTrack 初始化失败，可能无法播放音频
 *
 * */

val message = hashMapOf(
        -1 to "MEDIA_ERROR_UNKNOWN",
        -2 to "ERROR_CODE_OPEN_FAILED",
        -3 to "ERROR_CODE_IO_ERROR",
        -4 to "ERROR_CODE_SEEK_FAILED",
        -5 to "ERROR_CODE_CACHE_FAILED",
        -2003 to "ERROR_CODE_HW_DECODE_FAILURE",
        -2008 to "ERROR_CODE_PLAYER_DESTROYED",
        -9527 to "ERROR_CODE_PLAYER_VERSION_NOT_MATCH",
        -4410 to "ERROR_CODE_PLAYER_CREATE_AUDIO_FAILED"
)